import { BrowserWindow } from 'electron'

class WindowUtils {
    mainWindow: null | BrowserWindow = null
    debugWidow: null | BrowserWindow = null

    createMainWindow() {
        this.mainWindow = new BrowserWindow({
            width: 980,
            height: 720,
            webPreferences : {
                nodeIntegration : true,
                contextIsolation: false
            },
            show: false
        })
        return this.mainWindow
    }

    createDebugWindow() {
        this.debugWidow = new BrowserWindow({
            width: 980,
            height: 720,
            webPreferences : {
                nodeIntegration : true,
                contextIsolation: false
            }
        })

        return this.debugWidow
    }
}

export default new WindowUtils()